export default [{
  path: '/user',
  component: '../layouts/UserLayout',
  routes: [{
    path: '/user',
    redirect: '/user/signin',
  }, {
    path: '/user/signin',
    component: './user-login',
  }, ],
}, {
  path: '/',
  component: '../layouts/BasicLayout',
  Routes: ['src/pages/Authorized'],
  authority: ['admin'],
  routes: [{
      path: '/',
      redirect: '/dashboard/workplace',
    }, {
      // dashboard 
      path: '/dashboard',
      name: 'dashboard',
      icon: 'dashboard',
      routes: [{
        path: '/dashboard/workplace',
        name: 'workplace',
        component: './Dashboard/Workplace',
      }],
    }, {
      path: '/goods',
      name: 'goods',
      icon: 'gift',
      routes: [
        // 奖品列表
        {
          path: '/goods/center',
          name: 'center',
          component: './Goods/Center',
          hideChildrenInMenu: true,
          routes: [
            // {
            //   path: '/goods/center',
            //   redirect: '/goods/center/list',
            // },
            {
              path: '/goods/center',
              name: 'list',
              component: './Goods/index',
            }, {
              path: '/goods/center/profile',
              name: 'profile',
              component: './Profile',
            }
          ],
        }, {
          path: '/goods/manage',
          name: 'manage',
          component: './Goods/Manage',
        }
      ],
    }, {
      path: '/users',
      name: 'users',
      icon: 'team',
      routes: [
        // profile
        {
          path: '/users/list',
          name: 'list',
          component: './Users',
        },
        // goods
        {
          path: '/users/apply',
          name: 'apply',
          component: './Users/Apply',
        },
      ],
    },
    // {
    //   path: 'https://github.com/umijs/umi-blocks/tree/master/ant-design-pro',
    //   name: 'more-blocks',
    //   icon: 'block',
    // },
    {
      path: '/banners',
      name: 'banners',
      icon: 'picture',
      routes: [
        // 广告中心
        {
          path: '/banners/center',
          name: 'center',
          component: './Banners/Center',
        },
        // 广告管理
        {
          path: '/banners/manage',
          name: 'manage',
          component: './Banners/Manage',
        },
      ],
    }, {
      path: '/helps',
      name: 'helps',
      icon: 'question-circle',
      routes: [{
        path: '/helps/questions',
        name: 'questions',
        component: './Helps/Questions',
      }, {
        path: '/helps/feedbacks',
        name: 'feedbacks',
        component: './Helps/Feedback',
      }],
    }, {
      path: '/systems',
      name: 'systems',
      icon: 'windows',
      component: './Systems',
      hideInMenu: true,
    }, {
      path: '/recoveries',
      name: 'recoveries',
      icon: 'delete',
      component: './Recoveries',
      hideInMenu: true,
    }, {
      name: 'exception',
      icon: 'warning',
      path: '/exception',
      hideInMenu: true,
      routes: [
        // exception
        {
          path: '/exception/403',
          name: 'not-permission',
          component: './Exception/403',
        }, {
          path: '/exception/404',
          name: 'not-find',
          component: './Exception/404',
        }, {
          path: '/exception/500',
          name: 'server-error',
          component: './Exception/500',
        }
      ],
    }, {
      component: '404',
    },
  ],
}];